home *** CD-ROM | disk | FTP | other *** search
- head 1.2;
- branch ;
- access ;
- symbols ;
- locks ; strict;
- comment @ * @;
-
-
- 1.2
- date 89.10.24.10.14.52; author brent; state Exp;
- branches ;
- next 1.1;
-
- 1.1
- date 89.10.11.07.51.41; author brent; state Exp;
- branches ;
- next ;
-
-
- desc
- @Recovery module statistics printing
- @
-
-
- 1.2
- log
- @Fixed label.
- @
- text
- @/*
- * rawproc.c --
- *
- * Print raw format PROC statistics.
- *
- * Copyright (C) 1986 Regents of the University of California
- * All rights reserved.
- */
-
- #ifndef lint
- static char rcsid[] = "$Header: /a/newcmds/rawstat/RCS/rawrecov.c,v 1.1 89/10/11 07:51:41 brent Exp $ SPRITE (Berkeley)";
- #endif not lint
-
- #include "sprite.h"
- #include "stdio.h"
- #include "sysStats.h"
- #include "kernel/recov.h"
-
-
- /*
- *----------------------------------------------------------------------
- *
- * PrintRawProcMigStat --
- *
- * Prints proc_MigStats.
- *
- * Results:
- * None.
- *
- * Side effects:
- * None.
- *
- *----------------------------------------------------------------------
- */
-
- PrintRawRecovStat()
- {
- Recov_Stats stats; /* statistics buffer */
- Recov_Stats *X = &stats;
- int status;
-
- bzero((Address) &stats, sizeof(stats));
- status = Sys_Stats(SYS_RECOV_STATS, sizeof(stats), (Address) &stats);
- if (status != SUCCESS) {
- return;
- }
-
- printf("Recov_Stats\n");
-
- ZeroPrint("packets %8u\n", X->packets);
- ZeroPrint("pings %8u\n", X->pings);
- ZeroPrint("suppressed %8u\n", X->pingsSuppressed);
- ZeroPrint("timeouts %8u\n", X->timeouts);
- ZeroPrint("crashes %8u\n", X->crashes);
- ZeroPrint("reboots %8u\n", X->reboots);
- ZeroPrint("hostsMonitored %8u\n", X->numHostsPinged);
- }
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d11 1
- a11 1
- static char rcsid[] = "$Header: /a/newcmds/rawstat/RCS/rawproc.c,v 1.1 89/09/11 11:46:08 douglis Exp $ SPRITE (Berkeley)";
- d56 1
- @
-